package chain1;

import java.util.ArrayList;
import java.util.List;

public class ChainHandler {
    public List<IHandler> list = new ArrayList<>();
    public void addList(IHandler item){
        list.add(item);
    }

    public void doHandler(){
        for (IHandler iHandler:list) {
            iHandler.doHandler();
        }
    }

}
